﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using RESTServicioTecnico_Final.Dominio;
using System.ServiceModel.Web;

namespace RESTServicioTecnico_Final
{
    [ServiceContract]
    public interface IOrdenes
    {
        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "Ordenes", ResponseFormat = WebMessageFormat.Json)]
        OrdenServicio CrearOrdenServicio(OrdenServicio OrdenServicioACrear);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Ordenes/{codigo}", ResponseFormat = WebMessageFormat.Json)]
        OrdenServicio ObtenerOrdenServicio(string codigo);

        [OperationContract]
        [WebInvoke(Method = "PUT", UriTemplate = "Ordenes", ResponseFormat = WebMessageFormat.Json)]
        OrdenServicio ModificarOrdenServicio(OrdenServicio OrdenServicioAModificar);

        [OperationContract]
        [WebInvoke(Method = "DELETE", UriTemplate = "Ordenes", ResponseFormat = WebMessageFormat.Json)]
        void EliminarOrdenServicio(string codigo);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "Ordenes", ResponseFormat = WebMessageFormat.Json)]
        List<OrdenServicio> ListarOrdenes();

        
    }
}
